@tool
class_name FloatTextSpawner
extends Node2D



@export var target: Character
@export var range_rect: Rect2:
    set(value):
        range_rect  = value
        queue_redraw()


@export var debug_color: Color =  Color8(255, 0, 0, 100)


# func _ready() -> void:
#     target.handle_damage_signals.receive_damage_applied.connect()
#     target.handle_damage_signals.receive_damage_miss.connect()


func _draw() -> void:
    if not Engine.is_editor_hint(): return
    
    draw_rect(range_rect, debug_color)
